package cn.jbolt.core.handler.base;

import com.jfinal.aop.Invocation;
import com.jfinal.core.Controller;

import javax.servlet.http.HttpServletRequest;

/**
 * saas架构租户ID解析器接口定义
 * @ClassName:  JBoltSaasTenantIdParser
 * @author: JFinal学院-小木 QQ：909854136
 * @date:   2022年2月20日
 */
public interface JBoltSaasTenantSnParser {
	public static final String DEFAULT_TENANT_SN_KEY = "jbtenantsn";
	public static final String TYPE_DEFAULT = "default";
	public static final String TYPE_DOMAIN = "domain";
	public static final String TYPE_HEADER = "header";
	public boolean isFail();
	public String parse(Invocation inv);
	public String parse(Controller ctrl);
	public String parse(HttpServletRequest request);
}
